import { App } from "vue";

import VueMarkdownEditor from "./mdEditor";
import ElementPlus from "./element";
import VMdPreview from "./mdPreview";
import VmdPreviewHtml from "./mdPreviewHtml";

const pluginList = [VueMarkdownEditor, ElementPlus, VMdPreview, VmdPreviewHtml];

const plugins = {
  install(app: App<Element>) {
    Object.entries(pluginList).forEach(([, v]) => {
      app.use(v);
    });
  },
};

export default plugins;
